﻿using System;

namespace Windows_Web_Interface_2012
{
    public enum ReleaseTypes
    {
        TECHNICAL_PREVIEW,
        DEVELOPER_PREVIEW,
        CONSUMER_PREVIEW,
        RELEASE_PREVIEW,
        RTM,
        ALPHA,
        BETA,
        RELEASE_CANDIDATE,
        INDEV,
    }

    public static class Versions
    {
        public static Int32 PlatformProductVersion
        {
            get
            {
                return 2012;
            }
        }
        public static Int32 PlatformMajorVersion
        {
            get
            {
                return 1;
            }
        }

        public static Int32 PlatformMinorVersion
        {
            get
            {
                return 0;
            }
        }

        public static Int32 PlatformBuildVersion
        {
            get
            {
                return 1;
            }
        }

        public static Int32 PlatformServicePackVersion
        {
            get
            {
                return 1;
            }
        }

        public static ReleaseTypes PlatformReleaseVersion
        {
            get
            {
                return ReleaseTypes.INDEV;
            }
        }

        public static Int32 OperatingSystemMajorVersion
        {
            get
            {
                return System.Environment.OSVersion.Version.Major;
            }
        }

        public static Int32 OperatingSystemMinorVersion
        {
            get
            {
                return System.Environment.OSVersion.Version.Minor;
            }
        }

        public static Int32 OperatingSystemBuildVersion
        {
            get
            {
                return System.Environment.OSVersion.Version.Build;
            }
        }

        public static String OperatingSystemServicePackVersion
        {
            get
            {
                return System.Environment.OSVersion.ServicePack;
            }
        }
    }
}